E-commerce Web site technology architecture with over 1 million visits
The first introduction to E-commerce Web site high-performance, highly available solutions. From the frame composition of the scheme, the application is lvs+keepalived load balance. Achieve high-performance, highly available solutions (server clusters,
Considering the shortcomings of LVS and Nginx (because LVS uses synchronous request forwarding policy and Nginx is the asynchronous forwarding policy, combined with the disadvantage of both: as the Load Balancer server nginx and LVS processing the same request, all requests and response traffic will go through the Nginx server, However, when using LVS, only request traffic through the LVS network, the respo
Many websites do not need a large scale at the beginning, but as a website designer, expansion must be taken into account from the very beginning to build a highly scalable architecture. The so-called scalability means that the system can improve the carrying capacity of the system through scale expansion. After all, the vertical expansion of the server itself will soon be restricted, and the single machine will soon be unable to meet our needs, therefore, this capability is often achieved by ad
F5 BIG-IP Server Load balancer configuration instance and Web Management Interface experience [original] Big | medium | small [| by banquet] [Author: Zhang banquet this article version: V1.0 last modified: for more information, see http://blog.s135.com/f5_big_ip].
Recently, the performance of F5 BIG-IP and Citrix NetScaler L
There are many Server Load balancer solutions. The haproxy + keepalived solution is used here.
Introduction
Haproxy Introduction
Haproxy is a high-performance TCP/HTTP load balancing server software with fast speed and high availability. It is applicable to all TCP or HTTP-based applications, especially for busy Web Se
priority 100 -> priority 90 #从调度器优先级Start KeepAlive#先主后从分别启动keepalivesystemctl start keepalived.servicesystemctl status keepalived.service3. Test the HA characteristics of the keepalived(1) Virtual IP address driftFirst execute the command IP addr on master (LVS1), you can see the VIP on the master node;At this point if the Systemctl Stop keepalived.service command is executed on master, the VIP is no longer on master and the IP addr command on the slave node can see that the VIP has correctly
Nginx's address is as follows:Nginx Download: http://nginx.net/Download of the version used in this test: nginx/windows-0.8.22
Download extract to C:, change directory name to Nginx
Practice steps:
First:
In the local (10.60.44.126) server, IIS creates a Web site using a port of 808, as shown below:
IIS Web site bindings settings diagram
Second:
Create a Web
Cluster) A cluster is a loosely coupled multi-processor system composed of a group of independent computer systems. It communicates with each other through a network. Applications can transmit messages through the network shared memory to implement distributed computers.Load Balance) Server Load balancer is a dynamic balancing technology. It uses some tools to analyze data packets in real time, master the
as Snat IP)③, Origin Bar selection: Address List④, Address list column: ①type column select Host, fill in to access the Internet, external e-mail network IP address. ② or type column select Network and fill in the network segment and subnet mask to access the Internet, outgoing mail.⑤, VLAN traffic bar selection: Enabled on ...⑥, VLAN list column: Pulls the available column's "internal" to the selected column.Note: The default gateway of the real server needs to point to F5 's own intranet IP,
configuration pages are completed:★ Modify Virtual Server Demo page 1:http://blog.s135.com/book/f5/vs_properties.htm★ Modify Virtual Server Demo page 2:http://blog.s135.com/book/f5/vs_resources.htm
10. Create SNAT Secure network address translation, allowing real servers to access the Internet and send messages to the outside world ★ Create Snat Demo page: http://blog.s135.com/book/f5/snat_create.htm 1 , creating SNAT : snat_all_server Click the "Create" button on the "Local traffic→sn
ipvsadm start ipvsadm -C #清除内核虚拟服务器表中的所有记录 ipvsadm -A -t 12.0.0.1:80 -s rr #创建虚拟服务器 ipvsadm -a -t 12.0.0.1:80 -r 192.168.10.51:80 -m ipvsadm -a -t 12.0.0.1:80 -r 192.168.10.52:80 -m ipvsadm
Options for the IPVSADM management tool use:
-A: Indicates adding a virtual server
-T: Used to specify the VIP address and TCP port
-S: Used to specify load balancing scheduling algorithm
-A: Indicates adding a real server
The main implementation is a high-availability server Load balancer web server cluster, suitable for lamp architecture. The front end uses two servers as The lvs + keepalived load scheduler. N servers can be used as the apache + php application server in the middle, and the next two servers are used as the mysql high-a
Load Balancing is built on the existing network structure, it provides a cheap, effective, and transparent method to expand the bandwidth of network devices and servers, increase throughput, enhance network data processing capabilities, and improve network flexibility and availability.
I have recently learned many articles about Server Load balancer technology on
Nginx deploy a Web server and build a Load Balancer server with NFSFirst, build Nginxweb serverThis approach is to install Nginx with Yum, to ensure that the installation is successful before installing the Epel extension source prior to installation.650) this.width=650; "Src=" https://s2.51cto.com/wyfs02/M00/8E/EF/wKioL1jPdanStzu5AADTNzvDM1A240.png-wh_500x0-wm_
: This article mainly introduces the Nginx + IIS + Web front-end (SpringMVC)-server load balancer (1). If you are interested in PHP tutorials, refer to it. Introduction
When developing a large Web project, if our web is published on the IIS of a server, when a large number
follows:# cp/usr/local/tomcat/webapps/root/web-inf/web.xml/web/webapps/web-inf/# Vim/web/webapps/web-inf/web.xml #添加下面这一行, in Add multicast routing addresses for each Tomcat node (two Tomcat hosts to configure):Route add-net 228.0.1.7 netmask 255.255.255.255 Dev eth0Restart
I used nginx to implement the website load balancing test. In windows, IIS performs load measurement.
If your website traffic (pv) is getting higher and higher, and one server is no longer able to withstand the traffic pressure, increase the number of WEB servers for load.
Website
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.